
#import "BYResponse.h"

#pragma mark - BYResponse response base class

@implementation BYResponse

@synthesize isError = _isError, errorMessage = _errorMessage, isCache = _isCache;

- (id)initWithResponseDictionary:(NSDictionary *)responseDictionary {
    self = [super init];
    if (self) {
        _isError = NO;
    }
    return self;
}

- (id)initWithErrorMessage:(NSString *)errorMessage {
    self = [super init];
    if (self) {
        _isError = YES;
        _errorMessage = errorMessage;
    }
    return self;
}


@end